package com.qf.commerce.service;

import com.github.pagehelper.PageInfo;
import com.qf.commerce.common.dto.RoleDto;
import com.qf.commerce.common.vo.RoleVo;
import com.qf.commerce.entity.Role;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface RoleService {
    //增
    int add(RoleDto roleDto);
    //更新
    int updateRole(Role role,Long roleId);
    int updatePower(Long parentPowerId,Integer level,Long roleId);

    //删除
    int deleteRole(List<Long> ids);


    //查询
    List<RoleDto> selectRoleDetail(Long roleId);


    PageInfo<RoleVo> selectRole(String organizationName, Integer status, String roleName, String userName, Integer page, Integer size);


}
